class QueryRechangePricesModel {
  CashierRoute? cashierRoute;
  RechargePrice? rechargePrice;

  QueryRechangePricesModel({this.cashierRoute, this.rechargePrice});

  QueryRechangePricesModel.fromJson(Map<String, dynamic> json) {
    cashierRoute =
        json["cashierRoute"] == null
            ? null
            : CashierRoute.fromJson(json["cashierRoute"]);
    rechargePrice =
        json["rechargePrice"] == null
            ? null
            : RechargePrice.fromJson(json["rechargePrice"]);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (cashierRoute != null) {
      _data["cashierRoute"] = cashierRoute?.toJson();
    }
    if (rechargePrice != null) {
      _data["rechargePrice"] = rechargePrice?.toJson();
    }
    return _data;
  }
}

class RechargePrice {
  String? balance;
  List<String>? rechargePrices;

  RechargePrice({this.balance, this.rechargePrices});

  RechargePrice.fromJson(Map<String, dynamic> json) {
    balance = json["balance"];
    rechargePrices =
        json["rechargePrices"] == null
            ? null
            : List<String>.from(json["rechargePrices"]);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["balance"] = balance;
    if (rechargePrices != null) {
      _data["rechargePrices"] = rechargePrices;
    }
    return _data;
  }
}

class CashierRoute {
  List<CashierRouteData>? data;

  CashierRoute({this.data});

  CashierRoute.fromJson(Map<String, dynamic> json) {
    data =
        json["data"] == null
            ? null
            : (json["data"] as List)
                .map((e) => CashierRouteData.fromJson(e))
                .toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (data != null) {
      _data["data"] = data?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class CashierRouteData {
  String? balance;
  String? bankListImg;
  String? bankTransLimitImg;
  String? payChannel;
  String? payMethod;
  String? payMethodName;
  String? payMethodUrl;

  CashierRouteData({
    this.balance,
    this.bankListImg,
    this.bankTransLimitImg,
    this.payChannel,
    this.payMethod,
    this.payMethodName,
    this.payMethodUrl,
  });

  CashierRouteData.fromJson(Map<String, dynamic> json) {
    balance = json["balance"];
    bankListImg = json["bankListImg"];
    bankTransLimitImg = json["bankTransLimitImg"];
    payChannel = json["payChannel"];
    payMethod = json["payMethod"];
    payMethodName = json["payMethodName"];
    payMethodUrl = json["payMethodUrl"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["balance"] = balance;
    _data["bankListImg"] = bankListImg;
    _data["bankTransLimitImg"] = bankTransLimitImg;
    _data["payChannel"] = payChannel;
    _data["payMethod"] = payMethod;
    _data["payMethodName"] = payMethodName;
    _data["payMethodUrl"] = payMethodUrl;
    return _data;
  }
}
